@RestController
@RequestMapping("/api/songs")
public class SongController {
    @Autowired
    private SongService songService;

    @GetMapping("/playlist/{playlistId}")
    public ResponseEntity<List<Song>> getSongsByPlaylistId(@PathVariable Long playlistId) {
        List<Song> songs = songService.getSongsByPlaylistId(playlistId);
        return ResponseEntity.ok(songs);
    }
}
